package mybatis.interfaces.impl;

import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import mybatis.interfaces.ISortQueryCondition;

import java.util.List;


/**
 * @author CKC
 */
@NoArgsConstructor
@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PROTECTED)
@Data
public class SortQueryCondition implements ISortQueryCondition {

    private static final long serialVersionUID = 358483503871367046L;

    @ApiModelProperty(name = "sort", value = "排序，eg1: sort=-name,-age 表示 按照name的倒叙和age倒叙排序；eg2: sort=-name,age 表示 按照name的倒叙和age升序排序")
    protected List<String> sort;

}
